<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MyController extends CI_Controller {

	public function __construct()
	{
		parent::__construct();
		$email =  $this->session->userData("email");
		if (!isset($email)) {
 			echo "error";
 			return;
		}
	}

}